home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / compuserve-file-archive / 03 Demos and Info / FAQ7.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  28.4 KB  |  720 lines

  1. ========
  2. Newsgroups: comp.sys.cbm
  3. Subject: COMP.SYS.CBM: General FAQ, v3.1 Part 7/9
  4. From: brain@mail.msen.com (Jim Brain)
  5. Date: 13 Aug 1996 01:01:37 -0400
  6.  
  7.  
  8. X-Posted-By: YPost, version 0.08
  9.  
  10.  
  11. Archive-name: cbm-main-faq.3.1.p7
  12. Comp-answers-archive-name: commodore/main-faq/part7
  13. News-answers-archive-name: commodore/main-faq/part7
  14. Comp-sys-cbm-archive-name: main-faq/part7
  15. Version: 3.1
  16. Last-modified: 1996/08/12
  17.                    
  18.  
  19.   ---------------------------------------------------------------------------
  20.   
  21.   Table of Contents (for this file)
  22.   ---------------------------------
  23.  
  24.   10.  Emulators
  25.   10.1.  What is an emulator?
  26.   10.2.  What platforms do 64 emulators exist on?
  27.   10.3.  What platforms do 128 emulators exist on?
  28.   10.4.  Are any other Commodore computers emulated?
  29.  
  30.   11.  Troubleshooting
  31.   11.1.  What do I doisk drive?
  32.   11.2.  What do I do for my ill computer?
  33.   11.2.1.  What do I do for my ill Commodore 64?
  34.   11.2.2.  What do I do for my ill Commodore 128?
  35.   11.3.  What do I do for my ill keyboard?
  36.   
  37.   12.  Modifications and Cabling
  38.   How can you alter which side a 1571 reads from?
  39.   12.2.  How do I open a C128 power supply?
  40.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  41.   12.4.  How do I build a simple RS-232 interface cable?
  42.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  43.   12.6.  How can I determine how much VDC video memory is in my C128?
  44.   12.7.  How do I build a GEOCable interface?
  45. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  46.   
  47.   ---------------------------------------------------------------------------
  48.  
  49.  
  50.   10.  Emulators
  51.   
  52.   As time moves on, people move to other computer systems, for business resons
  53.   or otherwise.  However, many still long to play Commodore games, use 
  54.   Commodore software, and enjoy Commodore demos.  Thus, emulators were born
  55.   to bring the non-Commodore computer owner the enjoyment of owning a
  56.   Commodore.
  57.   
  58.     
  59.   10.1.  What is an emulator?
  60.   
  61.   An emulator is a piece of software that runs on a given platform and
  62.   emulates, or mimics, the operation of another machine.  When the
  63.   emulator loads up a program, the programs runs as though it were running
  64.   on the emulated platform.
  65.  
  66. | For more information on emulators and their use, please see The Commodore 
  67. | emulator FAQ, maintained by Ken Gifford  (tsrken@voicenet.com).  I can also be found on Jim Brain's MAILSERV serve 6.5.2 for more
  68. | information).
  69.   
  70.   For those with WWW browsers, the CBM Emulation FAQ is at:
  71.  
  72. | http://www.hut.fi/~msmakela/cbm/faq/
  73.                           
  74.   
  75.   10.2.  What platforms do 64 emulators exist on?
  76.   
  77.   64 emulators exist on the following machines:
  78.   
  79.   Amiga
  80.   IBM
  81.   Atari ST
  82.   Macintosh
  83.   UNIX
  84.   
  85.   
  86.   10.3.  What platforms do 128 emulators exist on?
  87.   
  88.   There is a very basic Commodore 128 emulator bundled available for the 
  89.   UNIX platform under X.  It is bundled with X64.
  90.  
  91.   
  92.   10.4.  Are any other Commodore computers emulated?
  93.   
  94.   There is a commodore product called the PET emulator that remaps a
  95.   Commodore 64 to emulate a PET 40 column unit (i.e. PET 4032).  You can
  96.   run this program on a C64 to emulate a PET, or you can run this program
  97. | on a 64 emulator to emulate a PET on an IBM, for example.  
  98.  
  99. + As for VIC-20 emulators, one exists for the Amiga, and there is a program
  100. + similar to the PET Emulator that allows a C64 to emulate a VIC-20.  For the
  101. + UNIX OS, one called VICE is available for machines with X Windows.  Contact
  102. + Andre Fachat (a.fachat@physik.tu-chemnitz.de) for more information.  The
  103. + emulator is at: http://www.tu-chemnitz.d  Although not necessarily a different Commodore computer, there is a
  104.   GEOS emulator in the works.  It is called GEOS Warp v1.0 and information
  105.   is available at http://stud1.tuwien.ac.at/~e9426444/geoswarp/index.html.
  106.   A version for the Apple PowerMac is in the alpha stage, and support for
  107.   a PC version.  Plans for a UNIX/X11 version are still unclear.  The author
  108.   is Andreas Varga, and can be contacted at e9426444@stud1.tuwien.ac.at.
  109.  
  110.  
  111.   11.  Troubleshooting
  112.   
  113.   
  114.   11.1.  What do I do for my ill disk drive?
  115.  
  116.   If the drive spins and the LEDs are off:
  117.   
  118.   At the back of the 1541 circuit board are two bridge rectifiers - stout
  119.   epoxy packages with 4 leads each. The innermost one is defective
  120.  
  121.   If both LEDs are dim:
  122.   
  123.   The 5VDC regulator is bad.
  124.   
  125.   If both LEDS are on:
  126.   
  127.   Drive did not make it through the power-on reset sequence.  Kernal ROM
  128.   (901229-05) is susepct, as is (in order of expectation):  VIA (6522), 
  129.   CPU (6502r equivalent), or a "glue" chip in the reset logic
  130.  
  131.   If your drive won't even accept input from the computerght is making some blinking pattern, then the drive may be telling you
  132.   what is wrong.
  133.   
  134.   No Blink       Kernal (E000-FFFF) ROM or 6522 VIA Failure
  135.   One Blink      6116 RAM Failure
  136.   Two Blinks     Possible Zero Page RAM Failure
  137.   Three Blinks   DOS (C000-CFFF) ROM Failure
  138.   Four Blinks    DOS (C000-CFFF) ROM Failure
  139.   Five Blinks    6116 RAM Failure
  140.   Six Blinks     6116 RAM Failure
  141. | Six Blinks     2114 RAM Failure at c4 or c5 (8050)
  142.   Seven Blinks   6116 RAM Failure
  143.   Eight Blinks   6116 RAM Failure
  144.  
  145.  
  146.   1541
  147.  
  148.   The most common problem facing the 1541 disk drive is alignment.  If your
  149.   1541 has trouble reading commercial disks, or reading disks written some
  150.   time ago, but has less trouble reading recently written disks, chances are
  151.   that your 1541 is out of alignment.  C= service centers will typically align
  152.   a 1541 for anywhere from $20 to $45.  There are also 1541 alignment
  153.   programs, (e.g. Free Spirit's "1541/71 Alignment System") which allow you
  154.   to align a 1541 yourself.  There are those who claim that this does not
  155.   produce good results, but there are others who claim to have had
  156.   satisfactory results with these programs.  There were a couple of articles
  157.   in COMPUTE Gazette and I think RUN on how to do this.  The real problem is
  158.   mechanical in nature and can be over come.  Other products are PHYSICAL
  159.   EXAM 1541 and 1571 versions.
  160.  
  161.   1571
  162.  
  163.   The C=1571 drive is normally a double sided drive.  However, it can also
  164.   emulate a 1541 and read single sided disks.  Some of the earlier 1571's had
  165.   oldes (ROMs) which caused a couple of problems.  One, these
  166.   older drives were typically very slow when writing to the back side of a
  167.   disk.  Two, it would take these drives ~30 seconds to go into single sided
  168.   mode.  To chead the error channel of the disk drive
  169.   right after startup.  On the 128, just PRINT DS$.  On the 64, use:
  170.  
  171.   10 open15,8,15:input#15,a,a$,b,c:close15:printa,a$,b,c
  172.  
  173. | Run the program; if the message says v3.1, you have the newer ROM.
  174. | If it has a version 3.0 or older, you have the older ROM.
  175.  
  176.   One problem that might occur is not having the head close enough to the disk
  177.   as required because of the light tension of the spring that pulls the head
  178.   down.  Somewhere I remember that there was supposed to be a replacement
  179.   part.  However, one of the alignment programs suggesting using pennies to
  180.   weight it down and lo and behold it started working.
  181.  
  182.   1581
  183.  
  184.   The C=1581 drive is a 3.5" drive that uses DSDD 800K disks.  It is
  185.   compatible with both the C64 and C128, although some programs will not work
  186.   correctly with the 1581.
  187.  
  188.   A small number of 1581's were shipped with an early version of a controller
  189.   chip which has problems with some software.
  190.  
  191.   
  192.   11.2.  What do I do for my ill computer?
  193.   
  194.   At times, every computer must be serviced.  As the parts supply of Commodore
  195.   equipment dwindles, servicing becomes harder.  However, there are many
  196.   sources in Section 16.2 that can service your Commodore machine, and here
  197.   are some things you can do to service it yourself.
  198.   
  199.   If the screen is garbled, but BASIC seems to be limping along, and any
  200.   command is met by an error, RAM could be bad.  You can look at bit 
  201.   patterns on the screen by determining screen codes for  garbage characters.
  202.   only bit 4 (32) should be on.  After you determine which bits, here is the
  203.   bit->IC mapping:
  204.        
  205.   Bit 7 (128) : U12
  206.   Bit 6 (64)  : U24
  207.   Bit 5 (32)  : U11
  208.   Bit 4 (16)  : U23
  209.   Bit 3 (8)   : U10
  210.   Bit 2 (4)   : U22
  211.   Bit 1 (2)   : U9
  212.   Bit 0 (1)   : U21
  213.  
  214.   A common problem with the C-64 is it's power supply.  The C64 power
  215.   supplies are not especially powerful, and have this disturbing tendency to
  216.   fail.  If your computer stops working, first check the power supply.
  217.   Replacement power supplies can be obtained from a number of mail order
  218.   places (e.g. Tenex, Parsec, Inc.).  Additionally, several places advertise
  219.   "heavy-duty" power supplies that come with warranties, and give the C64
  220.   enough power to run a REU.
  221.  
  222.   If your power supply goes, it can sometimes take other parts of the
  223.   computer with it.  If your power supply has died, but the C64 continues
  224.   to fail with a known working power supply, it is likely that a few of your
  225.   chips got fried.
  226.  
  227.   Also, another common problem with the C64 is the fuse inside the computer.
  228.   If the system power on light comes on, but you get a blank screen, suspect
  229.   the fuse.  It is usually blown by misinsertion of devices into the computer.
  230.  
  231.  
  232.   11.2.2.  What do I do for my ill Commodore 128?
  233.  
  234.   Like the 1571, the C-128 has an older ROM and a newer ROM.  The differences
  235.   between the two are less serious than is the case with a 1571.  The easiest
  236.   way to tell the difference is to click down the CAPS LOCK key and hit Q
  237.   while in BASIC direct mode.  If you see a lower case q, then you have an
  238.   older ROM.  If you see an upper case Q, then you have a newer ROM. ed from (e.g. Paxtron Corporation) for about $25.  The ROM 
  239. | chips in the 128 are all socketed, so replacing the chips is relatively
  240. | easy.
  241.        
  242.   
  243.   11.3.  What do I do for my ill keyboard?
  244.   
  245.     Clean it:
  246.  
  247.     Materials you will need:
  248.  
  249.     Denatured (rubbing) alcohol, a clean pencil eraser, cotton swabs, a small
  250.     Phillips head screwdriver, a jewellers size Phillips screwdriver, a
  251.     solder iron of some type, and a Commodore 64 computer keyboard.
  252.  
  253.     Procedure:
  254.  
  255.     1. FIRST AND FOREMOST. Make certain that you have discharged any static
  256.        electricity in your body by grounding yourself to something like a cold
  257.        water pipe. Otherwise, you could blow chips in your computer if you
  258.        were to touch the wrong things.
  259.  
  260.     2. Turn off your computer and unplug any and all cords and connectors,
  261.        fast-loaders, modems, etc. (just have yourself a naked (if you will
  262.        excuse the expression) computer).
  263.  
  264.     3. Thoroughly clean all external connectors and ports with the swabs and
  265.        alcohol. Also, clean all into those ports. If the problem
  266.        you had persists, proceed with the following:
  267.  
  268.     4. On a clean surface, turn your key-board upside-down. Remove the screws
  269.        in the bottom.
  270.  
  271.     5. CAREFULLY, separate the two halves about an inch. Unplug the connector
  272.        to the "power" LED on the top of the C-64.
  273.  
  274.     6. Place the two halves flat so that the keyboard is facing  you. The two
  275.        halves will be connected by a wire harness. This harness may be held
  276.        down by tape that must be removed in order to place the unit flat.
  277.  
  278.     7. Remove the 15 or so brass screws that hold the  circuit  board  under
  279.        the keyboard.
  280.        
  281.     7a.Unsolder the wires going to the shift-lock key.
  282.  
  283.     8. Turn the circuit board over. You will see the bottom of the keyboard
  284.        with a rubber "U" under each key, which makes contact with the board.
  285.        You will also see on the circuit board, a pair of gold contacts for
  286.        each key on the C-64.
  287.  
  288.     9. CAREFULLY wash ALL the rubber "U"'s and the gold contacts with the
  289.        swabs and rubbing alcohol. Allow the alcohol to DRY.
  290.  
  291.     10.Gently, clean each gold contact with the eraser. BRUSH AWAY THE ERASER
  292.        CRUMBS (I use  a  small  hand-held, battery-powered vacuum cleaner).
  293.  
  294.     11.Re-clean the gold contacts with the swabs and alcohol to ensure that
  295.        you have removed ALL traces of the eraser.
  296.  
  297.     12.Reassemble the C-64 in the reverse order of disassembly.
  298.  
  299.  
  300.   12.  Modifications and Cabling
  301.   
  302.   As time wears on, many Commodore owners are turning to themselves to
  303.   manufacture small interfaces, modify their systems, and perform other
  304.   enhancements.  Here are some common things the user can construct
  305.   himself or herself.
  306.   
  307.    
  308.   12.1.  How can you alter which side a 1571 reads from?
  309.   
  310.   On a 128, you can force the 1571 to go into single sided mode with the drive
  311.   command "u0>m0".  (Issue such a command with open15,8,15,"u0>m0":close15.)
  312.   On the 64, a 1571 defaults to single sided mode, but you can convert it to
  313.   double sided mode (and read full double sided disk in 64 mode) with the
  314.   drive command "u0>m1".  While in single sided mode, you can actually format
  315.   both sides of the disk as separate file systems.  The command "u0>h0"
  316.   selects the regular side of the disk, and "u0>h1" selects the flip side of
  317.   the disk.  Note that the flip side, when formatted this way, cannot be read
  318.   by a 1541; neither side will be readable by a 1571 when the disk is
  319.   inserted upside-down.
  320.  
  321.   
  322.   12.2.  How do I open a C128 power supply?
  323.  
  324.   First, unplug both leads running from the power supply and turn it upside
  325.   down.  Locate four (4) small circles in the bottom; two are in the corners 
  326.   and two in the other end a bit nearer each other.
  327.  
  328.   Find some sharp tool, e.g. pin or nail.  In turn, poke it inside each of 
  329.   the cirles, firmly, and pull the caps off gently. They'll come out easily. 
  330.   Breaking the caps should not matter, but there is no need to destroy the 
  331.   casing in process.
  332.  
  333.   Unsrew the 4 Phillips headed srews with an appropriate tool.
  334.  
  335.   Notes: 
  336.   
  337.   This does not apply to the C64 brick!
  338.   
  339.   Some 128 power supplies do not have rubber feet; rather, they have "L"-
  340.   shaped extensions on the casing.  The caps on these extensions are not
  341.   made of rubber, but can be removed.
  342.  
  343.  
  344.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  345.   
  346.   Here is the diagram used to make a replacement Chroma / Luminence 40
  347.   column cable, that the 1902A uses, to connect to the 64 or 128.  
  348.  
  349.         _______                             ________
  350.    1.  Not Used        /    2    \    *1. Luminance
  351.      / 2       4 \    *2.  Audio          / 4      5  \   *2. Ground  
  352.     !             !   *3.  Ground        !             !  *3. Audio out
  353.     !      6      !   *4.  Chroma        ! 1    6    3 !   4. Video out
  354.     !             !    5.  Not Used      !             !   5. Audio in
  355.      \ 1       5 /    *6.  Luminance      \  7     8  /   *6. Chroma
  356.       \____n____/                          \____n____/     7. Not used
  357.                                                            8. Not used
  358.          1902A                                64/128
  359.                             * Actually used
  360.  
  361.  
  362.   12.4.  How do I build a simple RS-232 interface cable?
  363.   
  364.   Here are a couple of different interface ideas, and another can be found
  365.   at ftp://ftp.funet.fi/pub/CBM/documents/rs232.txt
  366.  
  367.   Using MAX-232 IC:
  368.     
  369.   Userport C64                                           C64 RS232
  370.                           _________
  371.                          |         |
  372.       PA2 M-----------11-|         |-14------------------- TXD (2)
  373.       PB1 D-----------10-|         |--7------------------- RTS (4)
  374.       PB6 K-----------12-| MAX 232 |-13------------------- CTS (5)
  375.     FLAG2 B---X--------9-|         |--8------------------- RXD (3)
  376.       PB0 C---|          |         |--3--|+-|
  377.       VCC 2-----------16-|         |--1-----|              DB25-connector
  378.       GND N------X----15-|         |
  379.                  X--|+-2-|         |--5--|+-|
  380.                  X--+|-6-|_________|--4-----|
  381.                  |
  382.                  |---------------------------------------- GND (7)
  383.  
  384.    -|+- capacitor 22uF/16V
  385.    -  +
  386.  
  387.   Using Transistors:
  388.  
  389.                           RS-ce
  390.                       <Transistors are 2n2222>
  391.   <24 pin edge connector>
  392.   N <-----------------------+-----------+
  393.                            /            !
  394.           22k         !-!>+             !
  395.   M <----/\/\/--------!                 !
  396.                       !---+             !
  397.           1k               \            !  <male db25 connector>
  398.   2 <----/\/\/--------------+------------>-------------------> 2
  399.                                         !
  400.                       +-----------------+
  401.                        \
  402.                         +<!-!                22k
  403.                             !---------------/\/\/------------> 8
  404.                         +---!
  405.                        /
  406.   H <-----------------+
  407.  
  408.   E <--------------------------------------------------------> 20
  409.  
  410.   C <---+
  411.         !
  412.   B <---+-------------+
  413.                        \
  414.                         +---!                22k
  415.                             !---------------/\/\/------------> 3
  416.                         +<!-!
  417.                        / 
  418.   A <-----------------+--------------------------------+-----> 7
  419.                                                        !
  420.                                                        +-----> 4
  421.                                                        !
  422.                                                        +-----> 1
  423.  
  424.  
  425.   If you are having problems with this circuit as it stands, you may wish
  426.   to modify it in this way to reverse the clock signal:
  427.   
  428.   Disconnect the emitter and collector on the middle transistor of the 
  429.   diagram (the one that goes to the H line on the computer side)
  430.   Connect the collector to pin 2 on the 24 pin edge connector (the 5v Vcc 
  431.   line), connect the emitter to pin H on the same connector, then connect a 
  432.   1k ohm resistor to the same pin H and the other end of the resistor to pin N
  433.   or A. 
  434.   
  435.  
  436.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  437.   
  438.   A new programming technique makes it possible to acheive 9600 bps on an
  439.   unexpected Commodore 64 without the use of a Swiftlink cartridge.  
  440.   Daniel Dallmann of Germany is the originator of this technique and is
  441.   currently writing modem drivers for some of the popular C64 terminal
  442.   emulation programs to take advantage of this new technique.
  443.   
  444.   The interface described below is a little more complex than the one
  445.   in Section 12.4, but has many advantages:
  446.  
  447.   * The interface generates proper EIA232 (RS-232) voltage levels.  
  448.     The one in Section 12.4 relies on the ability of most newer RS232
  449.     equipment to handle lower voltages.
  450.     
  451.   * The following interface can be used as a direct replacement for on 12.4, and will work will all most
  452.     telecommunications programs at up to 2400 bps, while providing the
  453.     necessary interfacing to allow suitably equipped applications to
  454. |   operate at up to 9600 bps.  (Some programs needing DCD and DTR lines
  455. |   may have problems.)
  456.     
  457.   * if you currently own a normal RS232 interface, that interface can be
  458.     modified to incorporate the new interfacing for 9600 bps operation.   
  459.     (in some cases one line of the old interface has to be disconnected,
  460.      see note **1 )
  461.  
  462.   9600 bps is the maximum limit this type of technique due to the timing
  463.   limitations of the C64.  The delay between the activation of the NMI-handler
  464.   and the falling edge of rxd is too long.  The handler must be called in 
  465.   less than 100 cycles.  That's no problem at 9600 bps, but for 19200 baud 
  466.   (the next higher baud rate), you have only 50 cycles, and that's impossoble 
  467.   (because of VIC-DMA ).  On a C128 in fast mode 38400 baud may be possible,
  468.   but I don't have a C128, so someone else has to try it out.
  469.  
  470.  
  471.               Schematic of a very simple RS232-Interface:
  472.   
  473.   
  474.     userport                       MAX232         rs232   9pin  25pin
  475.                                 +----------+
  476.                                 !          !
  477.   (C)    pb0--+                 !          !
  478.               !                 !    /!    !
  479.   (B)  flag2--*--------------------O< !---------  rxd     2      3
  480.               !                9!    \!    !8
  481.   *7*    sp2--+                 !          !
  482.                                 !          !
  483.   *6*   cnt2--+                 !          !
  484.               !                 !          !
  485.   *L*    pb7--+ <NOTE **1!>     !          !
  486.                                 !  !\      !
  487.   (M)    pa2--*--------------------! >O---------  txd     3      2
  488.               !               11!  !/      !14
  489.   *5*    sp1--+                 !          !
  490.                   74ls00        !          !
  491.                   +-----+       !          !
  492.                   !     !       !  !\      !
  493.   (D)    pb1-*------>O-------------! >O---------  rts     7      4
  494.              !   1!     !3    10!  !/      !7
  495.              +----!     !       !          !
  496.                  2!     !       !    /!    !
  497.   (K)    pb6--------O<-----*-------O< !---------  cts     8      5
  498.                  6!     !4 !  12!    \!    !13
  499.                   !     !--+    !          !
  500.   (1)    gnd------!     !5      !          !---   gnd     5      7
  501.                  7!     !       !          !15
  502.   (2)    +5V------!     !       !          !     (dsr     6      6)
  503.                 14+-----+       !          !
  504.                                 !          !     (dcd     1      8)
  505.                                 !          !
  506.                                 !          !     (dtr     4     20)
  507.                     c2  ! !+    !          !
  508. | (2)    +5v------------! !-----!          !     (ri      9     22)
  509.                         ! !    2!          !
  510.                                 !          !
  511.                     c4 +! !     !          !
  512.   (1)    gnd------------! !-----!          !
  513.                         ! !    6!          !
  514.                                 !          !
  515.                      c1 ! !+    !          !
  516.                       +-! !-----!          !
  517.                       ! ! !    1!          !
  518.                       !         !          !
  519.                       +---------!          !
  520.                                3!          !
  521.                      c3 ! !+    !          !
  522.                       +-! !-----!          !
  523.                       ! ! !    4!          !
  524.                       !         !          !
  525.                       +---------!          !
  526.                                5!          !
  527.                                 !          !
  528.   (1)    gnd--------------------!          !
  529.                               15!          !
  530.                                 !          !
  531.   (2)    +5V--------------------!          !
  532.                               16+----------+
  533.  
  534.   (x) - connections required for a normal RS232-Interface.
  535.   *x* - additional connections to go up to 9600 baud.
  536.  
  537. | remark: The MAX232 needs 4 capacitors to generate +/- 10 volts to
  538. |         drive the RS-232 unit.  The values are as such:  (in uF)
  539.  
  540. |         IC       C1   C2   C3   C4                        
  541. |         -------  ---  ---  ---  ---
  542. |         MAX232   1.0  1.0  1.0  1.0  
  543. |         MAX232A  0.1  0.1  0.1  0.1  
  544. |         MAX232E  1.0  1.0  1.0  1.0  
  545.                          
  546.   notes :
  547.      **1 Some other interfaces use this pin.  In that case you have to cut 
  548.          the connection and change it to new way.  PB7 is normally used to 
  549.          receive the DSR (Data Set Ready) signal from the modem, but this 
  550.          signal isn't supported by all terminal progruse of the new 
  551.          wiring DSR will seem to be active to all 'old' programs, so that 
  552.          there won't be any troubles.
  553.  
  554.  
  555.      Top view of the used ICs:
  556.   
  557.           74 LS 00                    MAX232
  558.           +------+                   +------+
  559.      inA -!1 \/14!- vcc       +cap1 -!1 \/16!- Vcc
  560.      inA -!      !-  inC      +cap2 -!      !- GND
  561.     outA -!      !-  inC      -cap1 -!      !- RS232/txd
  562.      inB -!      !- outC      +cap3 -!      !- RS232/cts
  563.      inB -!      !-  inD      -cap3 -!      !- TTL/^cts
  564.     outB -!      !-  inD      -cap4 -!      !- TTL/txd
  565.      gnd -!7    8!- outD  RS232/rts -!      !- TTL/^rts
  566.           +------+        RS232/rxd -!8    9!- TTL/rxd
  567.                                      +------+
  568.           4 X NAND
  569.                                      2 X RS232 transmitter
  570.                                      2 X RS232 receiver
  571.  
  572.         user port (view on C64s backside)
  573.  
  574.        1  2  3  4  5  6  7  8  9 10 11 12   (top)
  575.       ------------------------------------
  576.        A  B  C  D  E  F  H  J  K  L  M  N   (bottom)
  577.   
  578.           1 - GND       A - GND
  579.           2 - +5V       B - ^flag2
  580.           3 - ^reset    C - pb0
  581.           4 - cnt1      D - pb1
  582.           5 - sp1       E - pb2
  583.           6 - cnt2      F - pb3
  584.           7 - sp2       H - pb4
  585.           8 - ^pc2      J - pb5
  586.           9 - atn in    K - pb6
  587.           10- 9V AC     L - pb7
  588.           11- 9V AC     M - pa2
  589.           12- GND       N - GND
  590.  
  591.  
  592.   12.6.  How can I determine how much VDC video memory is in my C128?
  593.  
  594.   Here are two ways to detect whether the C128 VDC chip has 16kB or 64kB
  595.   of RAM. 
  596.  
  597.   1 rem fred's nifty program to determine size of 8563 dram
  598.   5 w=dec("cdcc"):r=dec("cdda")
  599.   10 bank15: ad=dec("d600"): da=ad+1 :rem setup ml
  600.   20 pokead,28: s=peek(da): pokeda,63 :rem select 64k
  601.   30 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,85,31 :rem write $55
  602.   40 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc1 :rem read here
  603.   50 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc2 :rem and here
  604.   60 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,170,31 :rem write $aa
  605.   70 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc3 :rem read here
  606.   80 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc4 :rem and here
  607.   s:sysdec("ff62") :rem restore 16/64k
  608.   95 print chr$(14)chr$(147)
  609.   100 irint "16K": else print"64K"  :rem did it echo? 
  610.   110 end
  611.  
  612.   or:
  613.  
  614.   POKE DEC("D600"),28:POKE DEC("D601"),63:SYS DEC("FF62"):SCNCLR
  615.  
  616.   If you have 16k the screen will fill with zeros; 64k will give you a 
  617.   ready prompt.
  618.  
  619.  
  620.   12.7.  How can I convert my C64 to run on battery power?
  621.  
  622.   The July, 1990 issue of 73 Amateur Radio has an article on converting
  623.   the C64 and 1541 to run on DC power. I'll summarize the C64 portion:
  624.  
  625.   DC Power Conversion for the C64
  626.  
  627.   1. Locate component CR4 on the circuit board. Mark the positive hole on
  628.      the board. Desolder and remove the component.
  629.      
  630.   2. Rest :-)
  631.  
  632.   3. Connect the marked hole to +12V.
  633.  
  634.   4. Desolder and remove VR1. Looking down at the component side of the
  635.      board, connect a wire from the vacant righand run it to
  636.      +12V.
  637.  
  638.   5. Locate L5. It will probably be in one of two locations. On the older
  639.      version, desolder the right hand leg and lift. On the newer version,
  640.      desolder the top leg and lift.
  641.  
  642.   6. Connect +5V to the empty L5 hole.
  643.  
  644.   7. Locate the R37 and R100 pads. Use a continuity meter to find the pads
  645.      that are connected. Desolder and lift these legs. You will insert a
  646.      60 Hz clock here.
  647.  
  648.   8. You could generate this clock using a ve's one:
  649.                                   +12V
  650.           __________________________|
  651.           |                         |
  652.           | C1    R1          ______|_______
  653.           |-)|-+-/\/\/-+-----|6     8       |
  654.           |    |       \     |              |
  655.           |   XTAL1    / R2  |    MM5369    |
  656.           |    |       \     |              |
  657.           |-)|-+-------+-----|5            1|---> 60 Hz (to R37 pad)
  658.             C2               |      2       |
  659.                               ---------------
  660.                                     |
  661.                                    GND
  662.  
  663.   C1 = 30 pF
  664.   C2 = 3-15 pF (variable)
  665.   XTAL1 = 3.57 MHz crystal
  666.   R1 = 1k
  667.   R2 = 10M
  668.  
  669.   It is suggested that you use a short length of shielded coax cable to
  670.   connect the 60 Hz output to the R37/R100 pad.
  671.  
  672.   Also, it is suggested that you use a frequency counter to tune the above
  673.   circuit to exactly 60 Hz.
  674.  
  675.   This conversion would work well if you wanted to use the C64 in a car or powered
  676.   by a solar set-up.
  677.  
  678.  
  679.   12.7.  How do I build a GEOCable interface?
  680.   
  681.   The interface is simply a cable between the printer and the user port.  
  682.   The pinout is as follows:
  683.   
  684.   pin on 64        pin on printer
  685.   
  686.   a  Ground        33  Grond
  687.   b  Flag 2        11  Busy
  688.   c  PB0            2  Data 1
  689.   d  PB1            3  Data 2
  690.   e  PB2            4  Data 3
  691.   f  PB3            5  Data 4
  692.   h  PB4            6  Data 5
  693.   j  PB5            7  Data 6
  694.   k  PB6            8  Data 7
  695.   l  PB7            9  Data 8
  696.   m  PA2            1  Strobe
  697.   n  Ground        16  Ground
  698.  
  699.   Superscript uses the same cable, but has the following change:
  700.  
  701.   b  Flag 2        10  Acknowledge
  702.  
  703.   Either wiring will work with either program, but the GEOCable wiring
  704.   is preferred.
  705.   
  706.   
  707. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  708.  
  709. + Look for the plans for the interface at:
  710.  
  711. + http://www.coast.net/simtel/msdos/info/c64topc.zip
  712.  
  713.   
  714.  
  715. -- 
  716. Jim Brain, Embedded System Designer, Brain Innovations, Inc. (BII)(offline sig)
  717. j.brain@ieee.org   "Above views DO reflect my employer, since I'm my employer"
  718. Dabbling in WWW, Embedded Systems, VR, Old CBM computers, and Good Times!  -Me-
  719. <a href=http://www.msen.com/~brain/>Jim Brain: BII, VR, and CBM info</a>
  720.